<template lang="">
    <div>
        用户名 <input type="text" v-model='form.username'> 
        密码<input type="text" v-model='form.password'> 
        <button @click='login'>登录</button>
        
    </div>
</template>
<script>
export default {
    data(){
        return{
            form:{}
        }
    },
    methods: {
        login(){
            this.axios.post('course/blogin',this.form).then(res=>{
                alert(res.data.mes)
            })
        }
    },
}
</script>
<style lang="">
    
</style>